﻿
@{
    ViewData["Title"] = "CreateProductionPlan";
    Layout = "~/Views/Home/Main.cshtml";
}

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/layui/2.6.8/css/layui.css"> <!-- 引入layui样式 -->
    <style>
        .form-container {
            border: 2px solid #000; /* 黑色边框，宽度为2px */
            padding: 20px; /* 内边距 */
            margin-left: 100px; /* 整个容器的左边距 */
            width: calc(100% - 220px); /* 宽度为页面宽度的剩余部分，减去左边距和边框宽度 */
            box-sizing: border-box; /* 包含内边距和边框在内计算宽度 */
        }
    </style>
</head>

<h4>生产管理/生产订单/创建生产计划</h4>
<br/>
<br/>

<div class="form-container">
<h5 style="margin-left:120px;">订单信息</h5>
<form class="layui-form" action="">
    <div class="layui-form-item" style="margin-left:120px">

        <div class="layui-inline">
            <label class="layui-form-label">生产编号:</label>
            <div class="layui-input-inline">
                <input type="text" id="SCNumber" name="SCNumber" disabled autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">客户名称:</label>
            <div class="layui-input-inline">
                <input type="text" id="KHMC" name="KHMC" disabled autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">订单编号:</label>
            <div class="layui-input-inline">
                <input type="text" id="DDNumber" name="DDNumber" disabled autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>

    <div class="layui-form-item" style="margin-left:120px">

        <div class="layui-inline">
            <label class="layui-form-label">订单来源:</label>
            <div class="layui-input-inline">
                <input type="text" id="DDLY" name="DDLY" disabled autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">交付日期:</label>
            <div class="layui-input-inline">
                <input type="text" id="DeliveryDate" name="DeliveryDate" disabled autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">备注:</label>
            <div class="layui-input-inline">
                <input type="text" id="Notes" name="Notes" disabled autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>

    <div class="layui-form-item" style="margin-left:120px">

        <div class="layui-inline">
            <label class="layui-form-label">创建时间:</label>
            <div class="layui-input-inline">
                <input type="text" id="CreatedDate" name="CreatedDate" disabled autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">创建人:</label>
            <div class="layui-input-inline">
                <input type="text" id="CreatedBy" name="CreatedBy" disabled autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">最后更新时间:</label>
            <div class="layui-input-inline">
                <input type="text" id="EndDate" name="EndDate" disabled autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">最后更新人:</label>
            <div class="layui-input-inline">
                <input type="text" id="EndPerson" name="EndPerson" disabled autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
</form>
</div>
<br/>
@* <div class="form-container">
<h5 style="margin-left:120px;">成品信息</h5>
<table class="layui-table" id="ManufactureTable" width="100%"></table>

<br/>
<br/>

    <div class="layui-inline" class="layui-btn-container" style="margin-left:1250px;margin-top:20px">
        <button type="button" class="layui-btn layui-btn-primary"onclick="location.href='/Allocate/SowAllocateList'">取消</button>
        <button type="button" class="layui-btn layui-bg-blue" onclick="AddProductionPlan()">生成计划</button>  
    </div>    
</div> *@
    <div class="layui-inline" class="layui-btn-container" style="margin-left:1250px;margin-top:20px">
        <button type="button" class="layui-btn layui-btn-primary"onclick="location.href='/Allocate/SowAllocateList'">取消</button>
        <button type="button" class="layui-btn layui-bg-blue" onclick="AddProductionPlan()">生成计划</button>  
    </div>    


<script>
layui.use(function(){
  var laydate = layui.laydate;
  // 日期时间选择器 - 日期和时间选择器同时显示（全面板）
    //交付日期
  laydate.render({
    elem: '#DeliveryDate',
    type: 'datetime',
    fullPanel: true // 2.8+
  });

  //创建时间
  laydate.render({
    elem: '#CreatedDate',
    type: 'datetime',
    fullPanel: true // 2.8+
  });


  //最后更新时间
  laydate.render({
    elem: '#EndDate',
    type: 'datetime',
    fullPanel: true // 2.8+
  });
});
</script>

<script src="~/js/Manufacture/CreateProductionPlan.js"></script>